<?php
/**
 * Created by PhpStorm.
 * User: yellow
 * Date: 2019/8/9
 * Time: 15:33
 */

namespace app\common\model;


use think\Model;

class CrashOut extends Model
{

    public function getStatusAttr($value){
        $statusArr = [1=>'申请中',2=>'审核通过',3=>'审核不通过',4=>'打款成功'];
        return $statusArr[$value];
    }

    public function busUser(){
        return $this->hasOne('BusBusinessUser', 'id', 'user_id')->bind([
            'nick_name'
        ]);
    }

}